<?php
// echo __LINE__;
include '../functions.php'; 
// include './Car.class.php';
// include './Animal.class.php';
// include './Dog.class.php';
// include './Cat.class.php';
// include './abstract.father.class.php';
// include './Xiaoming.class.php';
// include './Xiaohong.class.php';
// include './Interface.Usb.class.php';
// include './Interface.Wlan.class.php';
// include './Pc.class.php';



function __autoload($classname)
{
	$path = array(
		'./abstract.'.$classname.'.class.php',
		'./interface.'.$classname.'.class.php',
		'./'.$classname.'.class.php',
		);
	
	foreach ($path as $v) {
		if(file_exists($v)){
			include $v;
			break;
		}
	}
}


$Pc = new Pc();
// $Pc->xbs='hello world';
// $Pc->xbs(435,3,5,43543,5);
// exit;


$xiaoming = new Xiaoming();

var_dump($xiaoming->eat());

$xiaohong = new Xiaohong();

var_dump($xiaohong);

// Dog::abc();

// $dog = new Dog("小明");

// echo Dog::$name;

// $dog = new Dog();

// echo Dog::$name;

// $dog = new Dog();

// $dog->run();exit;

// var_dump($dog->firstname);

// $cat = new Cat();

// $cat->run();


// $obj = new Car();

// var_dump($obj->name);

// $obj = new Car("宝马");

// var_dump($obj->name);

// $obj->lenght = "345345";

// $obj->width = 90;

// // var_dump($obj->lenght);
// $obj->zairen();

// $obj1 = new Car();

// var_dump($obj1);

// $obj1->run();
















 ?>